package com.peking.donations.model;

import com.peking.donations.base.model.BaseModelAuditable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by wyz on 16/4/26.
 */
@Entity
@Table(name = "call_order")
public class CallOrder extends BaseModelAuditable {

    /**
     * 用户
     */
    @Column(name = "user_id")
    private int userId;
    /**
     * 用户姓名
     */
    @Column(name = "real_name")
    private String realName;

    /**
     *招募令昵称
     */
    @Column(name = "name")
    private String name;

    /**
     *领取份额(-1:无限制)
     */
    @Column(name = "total_share")
    private int totalShare;


    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getTotalShare() {
        return totalShare;
    }

    public void setTotalShare(int totalShare) {
        this.totalShare = totalShare;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CallOrder{" +
                "userId=" + userId +
                ", realName='" + realName + '\'' +
                ", name='" + name + '\'' +
                ", totalShare=" + totalShare +
                '}';
    }
}
